// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
#pragma once
#include "ILocationService.h"

namespace Weathr
{
    namespace Web
    {
        // Retrieves location information from the Bing Maps web service.
        class BingLocationService : public ILocationService
        {
        public:
            BingLocationService();

            // Retrieves the location at the provided latitude and longitude coordinates.
            concurrency::task<std::shared_ptr<Location>> GetLocationAsync(float latitude, float longitude);

            // Retrieves all locations that match the provided string.
            concurrency::task<std::vector<std::shared_ptr<Location>>> GetLocationsAsync(const std::wstring& name);

            // Retrieves the name of the service.
            std::wstring GetServiceName() const;
        };
    }
}